home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / layout / nsISVGGradient.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  15KB  |  441 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsISVGGradient.idl
  3.  */
  4.  
  5. #ifndef __gen_nsISVGGradient_h__
  6. #define __gen_nsISVGGradient_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. #include "nsColor.h"
  18. class nsIDOMSVGMatrix; /* forward declaration */
  19.  
  20. class nsISVGLinearGradient; /* forward declaration */
  21.  
  22. class nsISVGRadialGradient; /* forward declaration */
  23.  
  24. class nsIFrame; /* forward declaration */
  25.  
  26. class nsISVGGeometrySource; /* forward declaration */
  27.  
  28.  
  29. /* starting interface:    nsISVGGradient */
  30. #define NS_ISVGGRADIENT_IID_STR "62e79ab2-5bf9-4372-b397-7a942bc4c649"
  31.  
  32. #define NS_ISVGGRADIENT_IID \
  33.   {0x62e79ab2, 0x5bf9, 0x4372, \
  34.     { 0xb3, 0x97, 0x7a, 0x94, 0x2b, 0xc4, 0xc6, 0x49 }}
  35.  
  36. /**
  37.  * \addtogroup rendering_backend_interfaces Rendering Backend Interfaces
  38.  * @{
  39.  */
  40. /**
  41.  * Describes the 'gradient' objects (either linear or a radial) to the
  42.  * rendering backends.
  43.  *
  44.  * @nosubgrouping
  45.  */
  46. class NS_NO_VTABLE nsISVGGradient : public nsISupports {
  47.  public: 
  48.  
  49.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISVGGRADIENT_IID)
  50.  
  51.   enum { SVG_UNKNOWN_GRADIENT = 0U };
  52.  
  53.   enum { SVG_LINEAR_GRADIENT = 1U };
  54.  
  55.   enum { SVG_RADIAL_GRADIENT = 2U };
  56.  
  57.   /* readonly attribute PRUint32 gradientType; */
  58.   NS_IMETHOD GetGradientType(PRUint32 *aGradientType) = 0;
  59.  
  60.   /* readonly attribute PRUint16 gradientUnits; */
  61.   NS_IMETHOD GetGradientUnits(PRUint16 *aGradientUnits) = 0;
  62.  
  63.   /* readonly attribute PRUint16 spreadMethod; */
  64.   NS_IMETHOD GetSpreadMethod(PRUint16 *aSpreadMethod) = 0;
  65.  
  66.   /* void GetStopCount (out PRUint32 aStopCount); */
  67.   NS_IMETHOD GetStopCount(PRUint32 *aStopCount) = 0;
  68.  
  69.   /* void GetStopOffset (in PRInt32 aIndex, out float aOffset); */
  70.   NS_IMETHOD GetStopOffset(PRInt32 aIndex, float *aOffset) = 0;
  71.  
  72.   /* void GetStopColor (in PRInt32 aIndex, out nscolor aStopColor); */
  73.   NS_IMETHOD GetStopColor(PRInt32 aIndex, nscolor *aStopColor) = 0;
  74.  
  75.   /* void GetStopOpacity (in PRInt32 aIndex, out float aStopOpacity); */
  76.   NS_IMETHOD GetStopOpacity(PRInt32 aIndex, float *aStopOpacity) = 0;
  77.  
  78.   /* void GetNextGradient (out nsISVGGradient aNextGrad, in PRUint32 aType); */
  79.   NS_IMETHOD GetNextGradient(nsISVGGradient **aNextGrad, PRUint32 aType) = 0;
  80.  
  81.   /* void GetGradientTransform (out nsIDOMSVGMatrix retval, in nsISVGGeometrySource aSource); */
  82.   NS_IMETHOD GetGradientTransform(nsIDOMSVGMatrix **retval, nsISVGGeometrySource *aSource) = 0;
  83.  
  84. };
  85.  
  86. /* Use this macro when declaring classes that implement this interface. */
  87. #define NS_DECL_NSISVGGRADIENT \
  88.   NS_IMETHOD GetGradientType(PRUint32 *aGradientType); \
  89.   NS_IMETHOD GetGradientUnits(PRUint16 *aGradientUnits); \
  90.   NS_IMETHOD GetSpreadMethod(PRUint16 *aSpreadMethod); \
  91.   NS_IMETHOD GetStopCount(PRUint32 *aStopCount); \
  92.   NS_IMETHOD GetStopOffset(PRInt32 aIndex, float *aOffset); \
  93.   NS_IMETHOD GetStopColor(PRInt32 aIndex, nscolor *aStopColor); \
  94.   NS_IMETHOD GetStopOpacity(PRInt32 aIndex, float *aStopOpacity); \
  95.   NS_IMETHOD GetNextGradient(nsISVGGradient **aNextGrad, PRUint32 aType); \
  96.   NS_IMETHOD GetGradientTransform(nsIDOMSVGMatrix **retval, nsISVGGeometrySource *aSource); 
  97.  
  98. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  99. #define NS_FORWARD_NSISVGGRADIENT(_to) \
  100.   NS_IMETHOD GetGradientType(PRUint32 *aGradientType) { return _to GetGradientType(aGradientType); } \
  101.   NS_IMETHOD GetGradientUnits(PRUint16 *aGradientUnits) { return _to GetGradientUnits(aGradientUnits); } \
  102.   NS_IMETHOD GetSpreadMethod(PRUint16 *aSpreadMethod) { return _to GetSpreadMethod(aSpreadMethod); } \
  103.   NS_IMETHOD GetStopCount(PRUint32 *aStopCount) { return _to GetStopCount(aStopCount); } \
  104.   NS_IMETHOD GetStopOffset(PRInt32 aIndex, float *aOffset) { return _to GetStopOffset(aIndex, aOffset); } \
  105.   NS_IMETHOD GetStopColor(PRInt32 aIndex, nscolor *aStopColor) { return _to GetStopColor(aIndex, aStopColor); } \
  106.   NS_IMETHOD GetStopOpacity(PRInt32 aIndex, float *aStopOpacity) { return _to GetStopOpacity(aIndex, aStopOpacity); } \
  107.   NS_IMETHOD GetNextGradient(nsISVGGradient **aNextGrad, PRUint32 aType) { return _to GetNextGradient(aNextGrad, aType); } \
  108.   NS_IMETHOD GetGradientTransform(nsIDOMSVGMatrix **retval, nsISVGGeometrySource *aSource) { return _to GetGradientTransform(retval, aSource); } 
  109.  
  110. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  111. #define NS_FORWARD_SAFE_NSISVGGRADIENT(_to) \
  112.   NS_IMETHOD GetGradientType(PRUint32 *aGradientType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetGradientType(aGradientType); } \
  113.   NS_IMETHOD GetGradientUnits(PRUint16 *aGradientUnits) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetGradientUnits(aGradientUnits); } \
  114.   NS_IMETHOD GetSpreadMethod(PRUint16 *aSpreadMethod) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSpreadMethod(aSpreadMethod); } \
  115.   NS_IMETHOD GetStopCount(PRUint32 *aStopCount) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStopCount(aStopCount); } \
  116.   NS_IMETHOD GetStopOffset(PRInt32 aIndex, float *aOffset) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStopOffset(aIndex, aOffset); } \
  117.   NS_IMETHOD GetStopColor(PRInt32 aIndex, nscolor *aStopColor) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStopColor(aIndex, aStopColor); } \
  118.   NS_IMETHOD GetStopOpacity(PRInt32 aIndex, float *aStopOpacity) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStopOpacity(aIndex, aStopOpacity); } \
  119.   NS_IMETHOD GetNextGradient(nsISVGGradient **aNextGrad, PRUint32 aType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNextGradient(aNextGrad, aType); } \
  120.   NS_IMETHOD GetGradientTransform(nsIDOMSVGMatrix **retval, nsISVGGeometrySource *aSource) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetGradientTransform(retval, aSource); } 
  121.  
  122. #if 0
  123. /* Use the code below as a template for the implementation class for this interface. */
  124.  
  125. /* Header file */
  126. class nsSVGGradient : public nsISVGGradient
  127. {
  128. public:
  129.   NS_DECL_ISUPPORTS
  130.   NS_DECL_NSISVGGRADIENT
  131.  
  132.   nsSVGGradient();
  133.  
  134. private:
  135.   ~nsSVGGradient();
  136.  
  137. protected:
  138.   /* additional members */
  139. };
  140.  
  141. /* Implementation file */
  142. NS_IMPL_ISUPPORTS1(nsSVGGradient, nsISVGGradient)
  143.  
  144. nsSVGGradient::nsSVGGradient()
  145. {
  146.   /* member initializers and constructor code */
  147. }
  148.  
  149. nsSVGGradient::~nsSVGGradient()
  150. {
  151.   /* destructor code */
  152. }
  153.  
  154. /* readonly attribute PRUint32 gradientType; */
  155. NS_IMETHODIMP nsSVGGradient::GetGradientType(PRUint32 *aGradientType)
  156. {
  157.     return NS_ERROR_NOT_IMPLEMENTED;
  158. }
  159.  
  160. /* readonly attribute PRUint16 gradientUnits; */
  161. NS_IMETHODIMP nsSVGGradient::GetGradientUnits(PRUint16 *aGradientUnits)
  162. {
  163.     return NS_ERROR_NOT_IMPLEMENTED;
  164. }
  165.  
  166. /* readonly attribute PRUint16 spreadMethod; */
  167. NS_IMETHODIMP nsSVGGradient::GetSpreadMethod(PRUint16 *aSpreadMethod)
  168. {
  169.     return NS_ERROR_NOT_IMPLEMENTED;
  170. }
  171.  
  172. /* void GetStopCount (out PRUint32 aStopCount); */
  173. NS_IMETHODIMP nsSVGGradient::GetStopCount(PRUint32 *aStopCount)
  174. {
  175.     return NS_ERROR_NOT_IMPLEMENTED;
  176. }
  177.  
  178. /* void GetStopOffset (in PRInt32 aIndex, out float aOffset); */
  179. NS_IMETHODIMP nsSVGGradient::GetStopOffset(PRInt32 aIndex, float *aOffset)
  180. {
  181.     return NS_ERROR_NOT_IMPLEMENTED;
  182. }
  183.  
  184. /* void GetStopColor (in PRInt32 aIndex, out nscolor aStopColor); */
  185. NS_IMETHODIMP nsSVGGradient::GetStopColor(PRInt32 aIndex, nscolor *aStopColor)
  186. {
  187.     return NS_ERROR_NOT_IMPLEMENTED;
  188. }
  189.  
  190. /* void GetStopOpacity (in PRInt32 aIndex, out float aStopOpacity); */
  191. NS_IMETHODIMP nsSVGGradient::GetStopOpacity(PRInt32 aIndex, float *aStopOpacity)
  192. {
  193.     return NS_ERROR_NOT_IMPLEMENTED;
  194. }
  195.  
  196. /* void GetNextGradient (out nsISVGGradient aNextGrad, in PRUint32 aType); */
  197. NS_IMETHODIMP nsSVGGradient::GetNextGradient(nsISVGGradient **aNextGrad, PRUint32 aType)
  198. {
  199.     return NS_ERROR_NOT_IMPLEMENTED;
  200. }
  201.  
  202. /* void GetGradientTransform (out nsIDOMSVGMatrix retval, in nsISVGGeometrySource aSource); */
  203. NS_IMETHODIMP nsSVGGradient::GetGradientTransform(nsIDOMSVGMatrix **retval, nsISVGGeometrySource *aSource)
  204. {
  205.     return NS_ERROR_NOT_IMPLEMENTED;
  206. }
  207.  
  208. /* End of implementation class template. */
  209. #endif
  210.  
  211.  
  212. /* starting interface:    nsISVGLinearGradient */
  213. #define NS_ISVGLINEARGRADIENT_IID_STR "995ad9e6-6bb1-47c5-b402-fc93ce12f5e7"
  214.  
  215. #define NS_ISVGLINEARGRADIENT_IID \
  216.   {0x995ad9e6, 0x6bb1, 0x47c5, \
  217.     { 0xb4, 0x02, 0xfc, 0x93, 0xce, 0x12, 0xf5, 0xe7 }}
  218.  
  219. class NS_NO_VTABLE nsISVGLinearGradient : public nsISupports {
  220.  public: 
  221.  
  222.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISVGLINEARGRADIENT_IID)
  223.  
  224.   /** @} */
  225.   /* readonly attribute float X1; */
  226.   NS_IMETHOD GetX1(float *aX1) = 0;
  227.  
  228.   /* readonly attribute float X2; */
  229.   NS_IMETHOD GetX2(float *aX2) = 0;
  230.  
  231.   /* readonly attribute float Y1; */
  232.   NS_IMETHOD GetY1(float *aY1) = 0;
  233.  
  234.   /* readonly attribute float Y2; */
  235.   NS_IMETHOD GetY2(float *aY2) = 0;
  236.  
  237. };
  238.  
  239. /* Use this macro when declaring classes that implement this interface. */
  240. #define NS_DECL_NSISVGLINEARGRADIENT \
  241.   NS_IMETHOD GetX1(float *aX1); \
  242.   NS_IMETHOD GetX2(float *aX2); \
  243.   NS_IMETHOD GetY1(float *aY1); \
  244.   NS_IMETHOD GetY2(float *aY2); 
  245.  
  246. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  247. #define NS_FORWARD_NSISVGLINEARGRADIENT(_to) \
  248.   NS_IMETHOD GetX1(float *aX1) { return _to GetX1(aX1); } \
  249.   NS_IMETHOD GetX2(float *aX2) { return _to GetX2(aX2); } \
  250.   NS_IMETHOD GetY1(float *aY1) { return _to GetY1(aY1); } \
  251.   NS_IMETHOD GetY2(float *aY2) { return _to GetY2(aY2); } 
  252.  
  253. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  254. #define NS_FORWARD_SAFE_NSISVGLINEARGRADIENT(_to) \
  255.   NS_IMETHOD GetX1(float *aX1) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetX1(aX1); } \
  256.   NS_IMETHOD GetX2(float *aX2) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetX2(aX2); } \
  257.   NS_IMETHOD GetY1(float *aY1) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetY1(aY1); } \
  258.   NS_IMETHOD GetY2(float *aY2) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetY2(aY2); } 
  259.  
  260. #if 0
  261. /* Use the code below as a template for the implementation class for this interface. */
  262.  
  263. /* Header file */
  264. class nsSVGLinearGradient : public nsISVGLinearGradient
  265. {
  266. public:
  267.   NS_DECL_ISUPPORTS
  268.   NS_DECL_NSISVGLINEARGRADIENT
  269.  
  270.   nsSVGLinearGradient();
  271.  
  272. private:
  273.   ~nsSVGLinearGradient();
  274.  
  275. protected:
  276.   /* additional members */
  277. };
  278.  
  279. /* Implementation file */
  280. NS_IMPL_ISUPPORTS1(nsSVGLinearGradient, nsISVGLinearGradient)
  281.  
  282. nsSVGLinearGradient::nsSVGLinearGradient()
  283. {
  284.   /* member initializers and constructor code */
  285. }
  286.  
  287. nsSVGLinearGradient::~nsSVGLinearGradient()
  288. {
  289.   /* destructor code */
  290. }
  291.  
  292. /* readonly attribute float X1; */
  293. NS_IMETHODIMP nsSVGLinearGradient::GetX1(float *aX1)
  294. {
  295.     return NS_ERROR_NOT_IMPLEMENTED;
  296. }
  297.  
  298. /* readonly attribute float X2; */
  299. NS_IMETHODIMP nsSVGLinearGradient::GetX2(float *aX2)
  300. {
  301.     return NS_ERROR_NOT_IMPLEMENTED;
  302. }
  303.  
  304. /* readonly attribute float Y1; */
  305. NS_IMETHODIMP nsSVGLinearGradient::GetY1(float *aY1)
  306. {
  307.     return NS_ERROR_NOT_IMPLEMENTED;
  308. }
  309.  
  310. /* readonly attribute float Y2; */
  311. NS_IMETHODIMP nsSVGLinearGradient::GetY2(float *aY2)
  312. {
  313.     return NS_ERROR_NOT_IMPLEMENTED;
  314. }
  315.  
  316. /* End of implementation class template. */
  317. #endif
  318.  
  319.  
  320. /* starting interface:    nsISVGRadialGradient */
  321. #define NS_ISVGRADIALGRADIENT_IID_STR "446435ff-6699-4b4d-85c1-09c18145f5ce"
  322.  
  323. #define NS_ISVGRADIALGRADIENT_IID \
  324.   {0x446435ff, 0x6699, 0x4b4d, \
  325.     { 0x85, 0xc1, 0x09, 0xc1, 0x81, 0x45, 0xf5, 0xce }}
  326.  
  327. class NS_NO_VTABLE nsISVGRadialGradient : public nsISupports {
  328.  public: 
  329.  
  330.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISVGRADIALGRADIENT_IID)
  331.  
  332.   /** @} */
  333.   /* readonly attribute float Cx; */
  334.   NS_IMETHOD GetCx(float *aCx) = 0;
  335.  
  336.   /* readonly attribute float Cy; */
  337.   NS_IMETHOD GetCy(float *aCy) = 0;
  338.  
  339.   /* readonly attribute float R; */
  340.   NS_IMETHOD GetR(float *aR) = 0;
  341.  
  342.   /* readonly attribute float Fx; */
  343.   NS_IMETHOD GetFx(float *aFx) = 0;
  344.  
  345.   /* readonly attribute float Fy; */
  346.   NS_IMETHOD GetFy(float *aFy) = 0;
  347.  
  348. };
  349.  
  350. /* Use this macro when declaring classes that implement this interface. */
  351. #define NS_DECL_NSISVGRADIALGRADIENT \
  352.   NS_IMETHOD GetCx(float *aCx); \
  353.   NS_IMETHOD GetCy(float *aCy); \
  354.   NS_IMETHOD GetR(float *aR); \
  355.   NS_IMETHOD GetFx(float *aFx); \
  356.   NS_IMETHOD GetFy(float *aFy); 
  357.  
  358. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  359. #define NS_FORWARD_NSISVGRADIALGRADIENT(_to) \
  360.   NS_IMETHOD GetCx(float *aCx) { return _to GetCx(aCx); } \
  361.   NS_IMETHOD GetCy(float *aCy) { return _to GetCy(aCy); } \
  362.   NS_IMETHOD GetR(float *aR) { return _to GetR(aR); } \
  363.   NS_IMETHOD GetFx(float *aFx) { return _to GetFx(aFx); } \
  364.   NS_IMETHOD GetFy(float *aFy) { return _to GetFy(aFy); } 
  365.  
  366. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  367. #define NS_FORWARD_SAFE_NSISVGRADIALGRADIENT(_to) \
  368.   NS_IMETHOD GetCx(float *aCx) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCx(aCx); } \
  369.   NS_IMETHOD GetCy(float *aCy) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCy(aCy); } \
  370.   NS_IMETHOD GetR(float *aR) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetR(aR); } \
  371.   NS_IMETHOD GetFx(float *aFx) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFx(aFx); } \
  372.   NS_IMETHOD GetFy(float *aFy) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFy(aFy); } 
  373.  
  374. #if 0
  375. /* Use the code below as a template for the implementation class for this interface. */
  376.  
  377. /* Header file */
  378. class nsSVGRadialGradient : public nsISVGRadialGradient
  379. {
  380. public:
  381.   NS_DECL_ISUPPORTS
  382.   NS_DECL_NSISVGRADIALGRADIENT
  383.  
  384.   nsSVGRadialGradient();
  385.  
  386. private:
  387.   ~nsSVGRadialGradient();
  388.  
  389. protected:
  390.   /* additional members */
  391. };
  392.  
  393. /* Implementation file */
  394. NS_IMPL_ISUPPORTS1(nsSVGRadialGradient, nsISVGRadialGradient)
  395.  
  396. nsSVGRadialGradient::nsSVGRadialGradient()
  397. {
  398.   /* member initializers and constructor code */
  399. }
  400.  
  401. nsSVGRadialGradient::~nsSVGRadialGradient()
  402. {
  403.   /* destructor code */
  404. }
  405.  
  406. /* readonly attribute float Cx; */
  407. NS_IMETHODIMP nsSVGRadialGradient::GetCx(float *aCx)
  408. {
  409.     return NS_ERROR_NOT_IMPLEMENTED;
  410. }
  411.  
  412. /* readonly attribute float Cy; */
  413. NS_IMETHODIMP nsSVGRadialGradient::GetCy(float *aCy)
  414. {
  415.     return NS_ERROR_NOT_IMPLEMENTED;
  416. }
  417.  
  418. /* readonly attribute float R; */
  419. NS_IMETHODIMP nsSVGRadialGradient::GetR(float *aR)
  420. {
  421.     return NS_ERROR_NOT_IMPLEMENTED;
  422. }
  423.  
  424. /* readonly attribute float Fx; */
  425. NS_IMETHODIMP nsSVGRadialGradient::GetFx(float *aFx)
  426. {
  427.     return NS_ERROR_NOT_IMPLEMENTED;
  428. }
  429.  
  430. /* readonly attribute float Fy; */
  431. NS_IMETHODIMP nsSVGRadialGradient::GetFy(float *aFy)
  432. {
  433.     return NS_ERROR_NOT_IMPLEMENTED;
  434. }
  435.  
  436. /* End of implementation class template. */
  437. #endif
  438.  
  439.  
  440. #endif /* __gen_nsISVGGradient_h__ */
  441.